package com.sskj.common.util;

import android.annotation.SuppressLint;
import android.content.Context;

import com.afollestad.materialdialogs.MaterialDialog;
import com.sskj.common.R;
import com.sskj.common.base.App;

public class PermissionTipUtil {
    @SuppressLint("StringFormatInvalid")
    public static void tip(Context context, String content) {
        new MaterialDialog.Builder(context)
                .content(String.format(App.INSTANCE.getString(R.string.common_permission), content))
                .positiveText(R.string.common_sure)
                .negativeText(R.string.common_cancel)
                .onPositive((dialog, which) -> {
                    IntentUtil.gotoMiuiPermission(context);
                }).show();
    }
}
